﻿using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;

public class NewDirectory : MonoBehaviour
{ 
    void Start()
    {
        string path = Application.dataPath + "/test";
        //Directory.CreateDirectory(path);

        if (Directory.Exists(path))
        {
            print("有");
        }
        else
        {
            print("无");
        }

        Directory.Delete(path);

        if (Directory.Exists(path))
        {
            print("有");
        }
        else
        {
            print("无");
        }
    }
}
